home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Magazin: Amiga-CD 1997 November & December
/
Amiga-CD 1997 #11-12.iso
/
pd-disketten
/
ungepackt
/
12_95
/
apd-12-95-2
/
tips&tricks
/
modula-pools
< prev
next >
Wrap
Text File
|
1996-01-25
|
1KB
|
49 lines
(*$EntryExitCode:= FALSE *)
PROCEDURE AllocPooled(poolHeader{R.A0}: ADDRESS;
memSize{R.D0}: LONGCARD): ADDRESS;
BEGIN
ASSEMBLE(MOVE.L A6, -(A7)
MOVE.L EL(A4), A6
JSR -708(A6)
MOVE.L (A7)+, A6
RTS
END);
END AllocPooled;
(*$EntryExitCode:= FALSE *)
PROCEDURE FreePooled(poolHeader{R.A0}: ADDRESS;
memory{R.A1}: ADDRESS; memSize{R.D0}: LONGCARD);
BEGIN
ASSEMBLE(MOVE.L A6, -(A7)
MOVE.L EL(A4), A6
JSR -714(A6)
MOVE.L (A7)+, A6
RTS
END);
END FreePooled;
(*$EntryExitCode:= FALSE *)
PROCEDURE DeletePool(poolHeader{R.A0}: ADDRESS);
BEGIN
ASSEMBLE(MOVE.L A6, -(A7)
MOVE.L EL(A4), A6
JSR -702(A6)
MOVE.L (A7)+, A6
RTS
END);
END DeletePool;
(*$EntryExitCode:= FALSE *)
PROCEDURE CreatePool(memFlags{R.D0}: ED.MemReqSet;
puddleSize{R.D1}, treshSize{R.D2}: LONGCARD): ADDRESS;
BEGIN
ASSEMBLE(MOVE.L A6, -(A7)
MOVE.L EL(A4), A6
JSR -696(A6)
MOVE.L (A7)+, A6
RTS
END);
END CreatePool;